<template>
 <div>
  <router-view></router-view>
 </div>
</template>

<script setup lang="ts">
</script>

<style lang="scss" scoped>
.container {
  width: 800px;
  height: 500px;

  .box {
    width: 800px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #9cb068;

    .box_item {
      width: 200px;
      height: 50px;
      background-color: skyblue;
      margin-bottom: 5px;
      text-align: center;
      line-height: 50px;
      position: relative;

      .right_content {
        position: absolute;
        width:100%;
        min-width: 200px;
        max-width: 500px;
        min-height: 50px;
        background-color: rgba(126, 117, 117, 0.5);
        left: 210px;
        top: 0;
        display: none;
      }
      &::before {
        content: "";
        position: absolute;
        left: 190px;
        top: 15px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid rgba(126, 117, 117, 0.5);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        display: none;
      }
      &:hover {
        .right_content {
          display: block;
        }
        &::before {
          display: block;
        }
        background-color: red;
      }
    }
  }
}
</style>
